﻿<phone:PhoneApplicationPage
    x:Class="掌控校园.SignInPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True"
    shell:SystemTray.Opacity="0"
    toolkit:TiltEffect.IsTiltEnabled="True"
    >
    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="Assets/SignInBackgroundImage.png"></ImageBrush>
        </Grid.Background>

        <ProgressBar x:Name="ProgressBar" Foreground="Magenta" Opacity="0" IsIndeterminate="True"></ProgressBar>
         
        <TextBlock Margin="12,17,0,28" Text="掌控校园" Style="{StaticResource PhoneTextNormalStyle}"/>
        
        <TextBlock Foreground="White" Margin="20,45,0,0" Height="75" VerticalAlignment="Top">
            <Run Text="登录" FontSize="60" FontWeight="Light"></Run>
            <Run Text="  Sign in" FontWeight="Light" FontSize="40"></Run>
        </TextBlock>
        
        <Grid Margin="0,-30,0,0">
            <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,230,0,0">
                <Border Background="White" Opacity="0.3"></Border>
                <TextBlock Height="30" Width="60" HorizontalAlignment="Left" Margin="6,0,0,0" Text="学号" TextAlignment="Left" IsHitTestVisible="False" FontSize="28" FontFamily="Arial"></TextBlock>
                <TextBox x:Name="ID" Text="" MaxLength="13" FontSize="25" Height="50" InputScope="Number" Width="290" HorizontalAlignment="Right" Foreground="White" CaretBrush="White" Background="White" Style="{StaticResource SignInTextBox}"></TextBox>
            </Grid>

            <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,330,0,0">
                <Border Background="White" Opacity="0.3"></Border>
                <TextBlock Height="30" Width="60" HorizontalAlignment="Left" Margin="6,0,0,0" Text="密码" TextAlignment="Left" IsHitTestVisible="False" FontSize="28" FontFamily="Arial"></TextBlock>
                <PasswordBox x:Name="Password" Password="" FontSize="25" MaxLength="16" Height="40" Width="285" CaretBrush="White" HorizontalAlignment="Right" Style="{StaticResource MyPasswordBoxStyle}"></PasswordBox>
            </Grid>

            <Grid Height="80" VerticalAlignment="Top" Width="360" Margin="0,400,0,0">
                <CheckBox IsChecked="True"  Height="40" VerticalContentAlignment="Top" Margin="0,-20,0,0" HorizontalAlignment="Left" Width="40" Background="#50FFFFFF" Opacity="1" Style="{StaticResource MyCheckBoxStyle}"></CheckBox>
                <TextBlock Text="记住密码" FontSize="20" Height="25" Width="80" HorizontalAlignment="Left" Opacity="0.8" VerticalAlignment="Top" Margin="33,16,0,0"></TextBlock>
                <HyperlinkButton Content="找回密码" NavigateUri="/Register.xaml"  FontSize="20" Foreground="White" Opacity="0.8" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="180,16,0,0"></HyperlinkButton>
            </Grid>
            <Grid Height="100" Width="360" VerticalAlignment="Top" Margin="0,470,0,0">
                <Button Click="SignInButton_Click" Background="#50FFFFFF" Height="60" Width="100" Margin="20,0,0,0" Content="登录" HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource ButtonStyleWithNoChengeOnClick}"></Button>
                <Button Click="RegisterButton_Click" Background="#50FFFFFF" Height="60" Width="100" Margin="190,0,0,0" Content="注册" HorizontalAlignment="Left" VerticalAlignment="Top" Style="{StaticResource ButtonStyleWithNoChengeOnClick}"></Button>
                <Grid Height="60" Width="70" VerticalAlignment="Top" HorizontalAlignment="Right" Opacity="0.8">
                    <Button Opacity="0" Click="GoToMainPageWithoutSignIn_Click"></Button>
                    <TextBlock TextAlignment="Center" IsHitTestVisible="False">
                        直接<LineBreak/>进入
                    </TextBlock>
                </Grid>
            </Grid>
            
        </Grid>

    </Grid>

</phone:PhoneApplicationPage>